import React from "react";
const About = () => {
    let navigate = React.router.useNavigate();
    const [LoginUser, setLoginUser] = React.useState(React.$cookie.load('LoginUser') ?? {})
    const [aboutus,setAbouts] = React.useState('');
    React.useEffect(() => {
       getAboutData();
    }, [])

    const getAboutData =async () => {
        let result = await React.$api.getAboutData();
        if(result.code == 1){
            setAbouts(result.data.aboutus)
        }
    }
    return (
        <>
            <React.$vant.NavBar
                title="关于我们"
                leftText=""
                onClickLeft={() => navigate(-1)}
            />
            <div className="jianjie_k">
                <h2>慧鑫医疗器械</h2>
                <p><div dangerouslySetInnerHTML={{__html:aboutus}}></div></p >
            </div>
            <div className="footer_jianj">
                <p>{LoginUser.beian}</p>
            </div>
        </>
    )
}

export default About;